package twosum

func TwoSum(nums []int, target int) []int {
	m:=map[int]int{}
	for k,v:=range nums{
		m[v]=k
	}
	for k,v:=range nums{
		value:=target-v
		if k1,ok:=m[value];ok && k!=k1{
			return []int{k,k1}
		}
	}
	return nil
}